<?php if($adc->getCurrentAd()->getImage()):?>
<div class="detail image">
	<?php if($adc->getCurrentAd()->getImageId() > 0): ?>
	<a rel="gallery_<?php echo $adc->getCurrentAd()->getId(); ?>" class="fancyBoxGallery" href="<?php echo $adc->getCurrentAd()->getImage()->getLink(); ?>?rand=<?php echo rand(1, 10000); ?>"><img alt="<?php echo $txt->getWord('image'); ?>" src="<?php echo $adc->getCurrentAd()->getImage()->getLink($adc->getSetting('ImageDetailW'), $adc->getSetting('ImageDetailH')); ?>?rand=<?php echo rand(1, 10000); ?>" itemprop="image" /></a>
	<?php else:  ?>
	<?php endif; ?>
</div>
<?php endif; ?>
<div class="v-space"></div>
<?php if(count($adc->getCurrentAd()->getImages()) > 1):?>
	<?php if(!($_REQUEST['print'] != '')): ?>
		<div class="row-fluid hidden-print">
			<div class="span12 thumbs">
				<?php
				$i=0;
				foreach($adc->CurrentAd->getImages() as $img)
				{
					if($i > 0)
					{
						?>
							<a rel="gallery_<?php echo $adc->getCurrentAd()->getId(); ?>" class="fancyBoxGallery" href="<?php echo $img->getLink(); ?>?rand=<?php echo rand(1, 10000); ?>"><img alt="<?php echo $txt->getWord('image'); ?>" src="<?php echo $img->getLink($adc->getSetting('ImageDetailThW'), $adc->getSetting('ImageDetailThH')); ?>?rand=<?php echo rand(1, 10000); ?>" itemprop="image" /></a>
						<?php 
						//if(($i%6) == 0)
						//{ echo '</div></div><div class="row-fluid visible-desktop"><div class="span12 thumbs">'; }
					}
					$i++;
				}
				?>
			</div>
		</div>
	<?php endif; ?>
<?php endif; ?>